package com.dmap.run.service;



import com.dmap.run.controller.api.param.SwimRecordParam;
import com.dmap.run.po.SwimRecord;
import com.dmap.run.vo.SwimRecordHistoryVo;

import java.util.List;

/**
 * \* User: silent
 * \* Date: 08/06/18 Time: 下午 12:01
 * \* Description:
 * \
 */
public interface SwimRecordService {


    boolean insertSwimRecord(SwimRecordParam param);

    /**
     * @return 存在：true ,不存在： false
     */
    boolean isExistSwimRecord(long userId, long startTime, long endTime);

    SwimRecordHistoryVo selectSwimRecordHistoryList(long userId);

    List<SwimRecord> selectSwimRecordListByPage(long userId, int pageIndex, int pageSize);
    /**
     * 获取用户总时长数 ,单位米
     *
     * @param userId
     * @return
     */
    int selectUserTotalTime(long userId);


    SwimRecord selectSwimRecordById(long swimRecordId);
}
